package cn.javass.dp.bridge.example6;

public class Client {
    public static void main(String[] args) {
        //MessageImplementor impl = new MessageSMS();
        MessageImplementor impl = new MessageMobile();

        AbstractMessage m = new CommonMessage(impl);
        m.sendMessage("喝杯茶吧，小伙","小明");
        m = new UrgencyMessage(impl);
        m.sendMessage("喝杯茶吧，小伙","小明");
        m = new SpecialUrgencyMessage(impl);
        m.sendMessage("喝杯茶吧，小伙","小明");




    }
}
